package com.hand.wfive.activity.edit

import android.content.Context
import com.hand.wfive.R
import com.hand.wfive.ad.AdActivity
import com.hand.wfive.fragment.file.FileAllFragment
import com.hand.wfive.util.click.singleClick
import kotlinx.android.synthetic.main.activity_file_center.fragment_file
import kotlinx.android.synthetic.main.activity_file_edit.topBar
import org.jetbrains.anko.startActivity

class FileCenterActivity : AdActivity() {
    companion object {
        fun show(context: Context) {
            context.startActivity<FileCenterActivity>()
        }
    }

    override fun init() {
        topBar.addLeftBackImageButton().singleClick { doOnBackPressed() }
        topBar.setTitle("文件中心")
        (fragment_file as FileAllFragment).mode=2
    }

    override fun getContentViewId() = R.layout.activity_file_center

}